import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import set from '@dfeidao/atom-web/local/set';
import nodejs from '@dfeidao/atom-web/msg/nodejs';
export default async function a007(fd: IFeidaoAiBrowserComponent) {
	const d = await fd.data.node.querySelector<HTMLSelectElement>('[data-d="select"]').value;

	console.log(d);
	const lecturer_number = d;
	const res = await nodejs('train-plan/zj-000004/s007', {
		lecturer_number
	});
	console.log(res);

	const nn = res[0][0] as { _id: string, lecturer_name: string };


	const lecturer_name = res as string;
	console.log(nn.lecturer_name);
	set(fd, 'lecturer_number', lecturer_number);
	set(fd, 'lecturer_name', nn.lecturer_name);
}
